//
//  DRMacro.h
//  DoctorRen
//
//  Created by Lemon on 2018/11/19.
//

#ifndef DRMacro_h
#define DRMacro_h

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define UIColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define There_Green UIColorFromHex(0x41CD8C)

#define Tabar_Gray UIColorFromHex(0xCDCDCD)

#define Text_Gray UIColorFromHex(0x969696)

//weakself
#define WEAKSELF __weak __typeof(&*self)weakSelf = self;
#define STRONGSELF typeof(weakSelf) __strong strongSelf = weakSelf;
//new http://rsjkkj.com/  old http://rys.juexin.cc/
#define API_GATEWAY @"http://rsjkkj.com/"

#define DRURL(url) [NSString stringWithFormat:@"%@%@",API_GATEWAY ,url]

#define KEY_WINDOW [[UIApplication sharedApplication] keyWindow]

#define kLoginSuccess @"LoginSuccess"

#endif /* DRMacro_h */
